package com.sservice.commonBusiness.type1;

import java.util.HashMap;
import java.util.Map;

public enum Category_TYPE {
    TYPE_DELIVER_PLACE(327, "配送地"),
    TYPE_MODULE_CATEGORY(326, "模块分类"),
    TYPE_MIN_SYS(325, "客户小程序"),
    TYPE_CUSTOMER(324, "客户"),
    TYPE_GROUP(323, "spec"),
    TYPE_SPEC(322, "spec"),
    TYPE_REGION(321, "地域"),
    TYPE_SIZE_ID(320, "尺码"),
    TYPE_AGE(319, "年龄"),
    TYPE_BANNER(318, "轮播图"),
    TYPE_DISCOUNT(317, "打折"),
    TYPE_SEASON(316, "季节"),
    TYPE_INFO(315, "资讯"),
    TYPE_COUNTRY(314, "国家"),
    TYPE_COMMISSION_WITHDRAW(313, "佣金提现"),
    TYPE_COLOR(312, "颜色"),
    TYPE_THEME_SHOP(311, "主题商品"),
    TYPE_SHOP_CATEGORY(310, "商品分类"),
    TYPE_THEME(309, "主题"),
    TYPE_MENU(220, "菜单"),
    TYPE_FRONT_MENU(221, "前端菜单"),
    TYPE_GIFT(305, "礼品卡"),
    TYPE_COUPON(306, "优惠卡"),
    TYPE_PC(307, "拼场"),
    TYPE_BRAND(308, "品牌");
    private String label;
    private Integer value;

    Category_TYPE(int value, String label) {
        this.label = label;
        this.value = value;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public static Map toMap() {
        Map map = new HashMap();

        Category_TYPE[] values = Category_TYPE.values();
        for (Category_TYPE type : values) {
            map.put(type,
                    Category_TYPE.valueOf(type + "").getValue() + ":" + Category_TYPE.valueOf(type + "").getLabel()
            );
        }
        return map;
    }


}
